Repository navigation
fix(runtime): the dispatcher's remaining 501 answers follow the request's language - #37845
Conversation
…st's language The fixed-English 501s of the auth, i18n, mcp, meta, packages and automation domains, the action and catalog activation doors, the permission-set clone door, the security suggested-binding reopen and share-links now render an operation-message catalog sentence in the request's top Accept-Language tag through catalogNotImplemented, and carry Vary: Accept-Language. Thirty-one sentences and six activation nouns are new catalog keys in en, zh-CN, ja-JP and es-ES; the English is byte-identical to the sentence each door answered before. capabilityUnavailable stays English (its sentence is the discovery remedy by contract), as does the MCP resume door's 501. Each door pins its language case; a source walk refuses any new deps.error(..., 501) outside the two builders. The requestLocaleOf jsdoc and four gate comments left behind by #37813 are corrected. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgUpnvPnJ1hR74pUrVj
…lection in the edited door tests Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgUpnvPnJ1hR74pUrVj
📓 Docs Drift CheckThis PR changes 2 package(s): 2 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:
What this run could not see
Coarse fallback — 182 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 02bb318bb50053d3109ab0e3e83afd5d59116e89 && git checkout 02bb318bb50053d3109ab0e3e83afd5d59116e89
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin adb65d1615dc0698d7b52a113831221bbc187d9f b30bbb0ffba65788668c9bbe4fc42dc086504628 && git checkout -B drift-repro adb65d1615dc0698d7b52a113831221bbc187d9f && git merge --no-ff b30bbb0ffba65788668c9bbe4fc42dc086504628
node scripts/docs-audit/affected-docs.mjs --json adb65d1615dc0698d7b52a113831221bbc187d9f
|
|
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA Re-run failed jobs once (seat) · head 3721556 · 2026-11-27T06:44Z Run 45953485693 ( |
…g the save catch unchanged The durability-degradation guard reads the save catch as a seam around saveMetaItem and refused its new early return. The landing's 501 is thrown before any write, so it is now caught around resolveDefaultCloneLanding alone. Every other failure is rethrown to the save catch, which is back to its main-branch form. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgUpnvPnJ1hR74pUrVj
|
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA Contract reviewServed-tier: Read: card #37811 with its three comments, the PR body, the 27-file list, the net diff against ① Derived judgments
② Semver level
Clause-②: the PR body and the changeset both say S1 (should-fix) — the ③ Boundary flagsThe card lists no
The card's other expectations: every one of the 31 sentence keys is asserted by a door test in the diff; Japanese says SQL push-down: the diff adds no query, no id materialisation and no in-app join. Security: no private finding. ④ Design judgment
The domain modules. Each replaced site keeps its condition, its position in the door's order of checks and its status; only the builder changes. The three
No must-fix. One should-fix, S1 above. Nits, none of which changes an answer:
N1 to N5 are left as accepted deviations or a follow-up card: a fix to any of them moves this head. S1's fix moves the head too and takes a delta review. Implemented-by: VERDICT: PASS |
… stay English Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgUpnvPnJ1hR74pUrVj
|
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA Contract reviewServed-tier: Delta record on the review of What moved: one commit, ① Derived judgmentsUnchanged: the published catalog gains 37 keys, the accept set does not move, and 31 ② Semver level
Clause-②: the PR body and the changeset now both say S1: closed The changeset also gains the ③ Boundary flagsUnchanged. The follow-up escalated in the earlier record, localizing SQL push-down: nothing to check; the delta touches no code. ④ Design judgmentNo must-fix, no should-fix. N5: closed. The changeset now names the three N1, N2, N3 and N4 stand as written in the earlier record, each a nit with no effect on an answer. They are accepted deviations on this PR and are carried by card #37864. Check-runs on this head: 59 success, 13 skipped, none failed. One Implemented-by: VERDICT: PASS |
|
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA 席位核对 — ACCEPT · head b30bbb0 · card #37811 · area s2-ux · 2026-11-27T08:11ZL1 checklist
Tier: S. Landing: ready and queued. |
Requested by Sales · project thread
Fixes #37811
Clause-②: yes (widening)
Metadata-protocol: none
Skills-docs: none (no page under
skills/**quotes these 501 sentences or their headers)维护者速读
Vary: Accept-Language响应头。英文句子、状态码和错误码都不变。What changes
Catalog,
packages/spec/src/system/operation-message.ts: 37 new keys, all inen,zh-CN,ja-JPandes-ES. 31 of them are sentences, one per fixed-English501. The other 6 arecatalog_activation_noun_*, the activation door's nouns, rendered in the same locale. The English of each sentence is byte-identical to the sentence its door answered before.{{member}},{{table}},{{name}}and{{packageId}}stay untranslated code, table, item and package names. The Japanese says自動化, as review follow-ups of PR #37721: Japanese term for automation in two 501 sentences, locale-fallback jsdoc wording, requestLocaleOf reader list; remaining fixed-English 501s #37737 aligned. A jsdoc paragraph names the keys and how they are read.Doors,
packages/runtime/src/domains/: every one of these501s now answers throughcatalogNotImplemented(own-door-bridge.ts, review follow-ups of PR #37721: Japanese term for automation in two 501 sentences, locale-fallback jsdoc wording, requestLocaleOf reader list; remaining fixed-English 501s #37737), which reads the request's topAccept-Languagetag and addsVary: Accept-Language:auth.ts: 1i18n.ts: 1mcp.ts: 2 (/mcpand the skill door)meta.ts: 5 (layered read, conditional save, save, draft listing, stored migration)packages.ts: 8automation.ts: 11 (5 connector credential and connection legs, which name the missing member, plus flow clone, resume, cancel, restore, screen lookup and run list)actions.ts: 1catalog-activation.ts: 1 (on/off sentences, with the localized noun)permission-set-clone.ts: 2security.ts: 1share-links.ts: 1The four
actions.ts,catalog-activation.tsandpermission-set-clone.tssites were found when the premise was re-measured; neither the card nor the seat note listed them. The clone landing's501is thrown fromresolveDefaultCloneLanding. It now carries its catalog key, and the door's catch answers it in the request's language. Its English stays the error's message.Review N2 of PR fix(runtime): a 501 answered in the request's language says it varies by Accept-Language, and the inbound automation hooks' Japanese 501 says 自動化 #37813: the
requestLocaleOfjsdoc now says the four non-bridge families, and now these modules, reach it throughcatalogNotImplemented. The four gate comments forapprovals.ts,automation-hooks.ts,comments.tsandwebhooks.tsinscripts/check-route-envelope.mjsnow say their501s go through it. No gate count changes.Pins:
501test gains a[#37811]block beside it, which asserts byte-identical English with no header, the catalog's Japanese underja-JP, and theVary. These are the run lifecycle, connector credential and connection (with the member named), screen read, catalog and action activation, packages and/metaprobes, permission-set clone and/i18ntests.domain-501-language-37811.test.tspins the doors that had no501fixture:/auth,/mcp, the/metalayered read, conditional save and save,/share-links, the/securityreopen, and the/automationrun list, resume and flow clone.deps.error(…, 501), so a new fixed-English501fails there.operation-message.test.tspins that each of the 37 keys is translated in every locale (not an English echo) and keeps exactly the English placeholders.Changeset:
@objectstack/runtimeand@objectstack/specpatch.Small calls made here (no card):
capabilityUnavailable(unavailable.ts, ten call sites inai.ts,automation.ts,notifications.tsandui.ts). Its sentence isserviceUnavailableMessage(slot), the same remedy discovery reports asservices.<slot>.message. By contract the two are the same bytes, so a caller who hits the wall gets the fix that discovery lists. Discovery is English, so localizing this501alone would split the two. Localizing both is a discovery-protocol change and out of this card's scope. The answer carries noVary, because its text does not vary.501(mcp.ts,resumeDoorError). It is thrown into the resume tool's error mapping, not answered as an HTTP501envelope, and the calling agent reads it beside that door's other refusals, which are English.meta.ts'serrorFromThrown(e, 501). It forwards the metadata service's own thrown message, so the sentence is not the door's._on,_off), because the verb does not interpolate across languages.Why
Card #37811 is item 5 of #37737, split out by the seat. Comment 7210862044 adds the
capabilityUnavailable,share-links.tsandsecurity.tssites and review N2 of PR #37813.Verification
Head
372155638, plus5e4ea0904(the clone landing's501is caught aroundresolveDefaultCloneLandingalone, so the save catch keeps its main-branch form and the durability-degradation log-level guard passes: red on372155638, exit 0 on5e4ea0904locally;permission-set-clone.test.ts55/55,tscexit 0). CI on5e4ea0904: 58 success, 11 skipped, none failed:packages/runtime:vitest run src/domains, 243 files, 7130 passed, 4 skipped (heada30533a43; the follow-up head only adds a module-topimport '@objectstack/metadata'to five edited tests, and those five re-ran 103/103).packages/spec:src/system/operation-message.test.ts98/98.tsc --noEmit -p packages/runtime: exit 0.eslintonpackages/runtime/src/domains/*.tsand the catalog files: exit 0.node scripts/check-route-envelope.mjs: exit 0.check:changeset-fixed,check:test-source-alias: exit 0.node scripts/pm/overlap-check.mjs: clean (sharesmeta.tsandpackages.tswith feat(spec,service-knowledge)!: knowledge_source is a governed metadata type with its loader, its registry and two authoring guards #37676, merges cleanly).Claim:/Branch:spelling thatcheck:closing-target-claimreads. Locally, the gate passes against this PR's context.Human Minimum
packages/specholds no runtime logic (catalog strings and comments only).main, one pull request.packages/spectouched: no generated artifact depends on these strings or comments.content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.🤖 Generated with Claude Code
https://claude.ai/code/session_01L6bhgUpnvPnJ1hR74pUrVj